home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / COMMUNIC / 1024.ZIP / GT.BAT < prev    next >
DOS Batch File  |  1987-10-25  |  2KB  |  51 lines

  1. echo off
  2. goto X_00_X
  3.  
  4.     This batch file is used in conjunction with GT POWER, which normally
  5.     restricts the number of times it may be used.  By running GT-RENEW,
  6.     the counter ( stored within GT.DIR ) is reset.  Although GT-RENEW
  7.     only has to be run occasionally ( about once per 100 times GT POWER is
  8.     run ), it is fast enough ( if you use a speedy hard disk ) to use on a
  9.     regular basis.  If it too slow on your system, you can speed it up
  10.     considerably by replacing this entire file with the next two lines:
  11. GT-RENEW RENEW [ directory_name_here_if_you_don't_want_it_to_be_GT.DIR ]
  12. GT1300
  13.     Note: As seen in the previous line, it is assumed that you have not renamed
  14.     GT1300.COM to GT.COM or some other name.  If you have done so, then this
  15.     file should be modified ( just below label X_02_X ).  Unless you know
  16.     exactly what you are doing, this batch file should not be called GT.BAT if
  17.     GT POWER is named GT.COM.
  18.  
  19. :X_00_X
  20. if exist gt.dir goto X_01_X
  21. if NOT "%1" == "" goto X_01_X
  22. echo  
  23. echo ####  GT.BAT ERROR: Can't find GT.DIR  ####
  24. echo  
  25. goto X_99_X
  26.  
  27. :X_01_X
  28. echo . 
  29. if "%1" == "" echo #### attempting to renew GT.DIR ####
  30. if NOT "%1" == "" echo #### attempting to renew %1.dir ####
  31. gt-renew renew %1
  32. if NOT errorlevel 1 goto X_02_X
  33. echo  
  34. if "%1" == "" echo ####  GT.BAT ERROR: Could not modify GT.DIR  ####
  35. if NOT "%1" == "" echo ####  GT.BAT ERROR: Could not modify %1.dir  ####
  36. echo  
  37. goto X_99_X
  38.  
  39. :X_02_X
  40. if "%1" == "" goto X_03_X
  41. shift
  42. if NOT "%1" == "" goto X_01_X
  43. if exist GT.DIR goto X_01_X
  44.  
  45. :X_03_X
  46. break off
  47. GT1300
  48.  
  49. :X_99_X
  50. break on
  51.